package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Writer;

/**
 * Created by zhangsen on 2016/10/25.
 */
public class Hello {

    private String name;
    private Integer num;
    private HttpServletRequest request;
    private HttpServletResponse response;
    public void index()
    {
        try {
            Writer w=response.getWriter();
            w.write(request.getSession().getId());
            w.flush();
            w.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
    public String getString()
    {
        return "Hello.jsp";
    }
}
